home *** CD-ROM | disk | FTP | other *** search
/ Acorn RISC PD-CD 1 / Acorn RISC PD-CD 1.iso / raytracers / _pvray / pv / scenes / fogtst < prev    next >
Encoding:
Text File  |  1991-11-03  |  1.5 KB  |  83 lines

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3.  
  4. #include "<PVray$Dir>.dat.shapes"
  5. #include "<PVray$Dir>.dat.colors"
  6. #include "<PVray$Dir>.dat.textures"
  7.  
  8. view_point
  9.    location <0.0  20.0  -100.0>
  10.    direction <0.0 0.0  1.0>
  11.    up  <0.0  1.0  0.0>
  12.    right <1.33333 0.0 0.0>
  13. end_view_point
  14.  
  15. fog
  16.    colour red 0.2 green 0.2 blue 0.2
  17.    200.0
  18. end_fog
  19.  
  20. { Put down the beloved famous raytrace green/yellow checkered floor }
  21. object
  22.    plane <0.0 1.0 0.0> -10.0 end_plane
  23.    texture
  24.       checker colour Yellow colour CGreen
  25.       ambient 0.2
  26.       diffuse 0.8
  27.       scale < 20.0 20.0 20.0 >
  28.    end_texture
  29.    colour Yellow
  30. end_object
  31.  
  32. object
  33.    sphere <0.0  25.0  0.0>  40.0 end_sphere
  34.  
  35.    texture
  36.       ambient 0.2
  37.       diffuse 0.6
  38.       colour CRed
  39.       scale <10.0 10.0 10.0>
  40.       rotate <90.0 0.0 0.0>
  41.       phong 1.0
  42.       phongsize 20
  43.    end_texture
  44.    colour CRed
  45. end_object
  46.  
  47. object
  48.    sphere <-100.0  150.0  200.0>  20.0 end_sphere
  49.    texture
  50.       colour Magenta
  51.       ambient 0.2
  52.       diffuse 0.6
  53.       phong 1.0
  54.       phongsize 20
  55.    end_texture
  56.    colour Magenta
  57. end_object
  58.  
  59. object
  60.    sphere <100.0  25.0  100.0>  30.0 end_sphere
  61.  
  62.    texture
  63.       colour CRed
  64.       ambient 0.2
  65.       diffuse 0.6
  66.       phong 1.0
  67.       phongsize 20
  68.    end_texture
  69.    colour CRed
  70. end_object
  71.  
  72. object
  73.    sphere <0.0  0.0  0.0>  2.0 end_sphere
  74.    translate <100.0  120.0  40.0>
  75.    texture
  76.       colour White
  77.       ambient 1.0
  78.       diffuse 0.0
  79.    end_texture
  80.    light_source
  81.    colour White
  82. end_object
  83.